﻿using System.Collections.Generic;
using System.Threading.Tasks;
using BackTask.DashBoard.Models;
using BackTask.Model;

namespace BackTask.DashBoard.Abstractions
{
    public interface IJobManger
    {
        public Task<IEnumerable<ScheduledJob>> GetAllJob();
        public void UseJobBuilder(BaseTaskJobBuilder baseTaskJobBuilder);
        public void PauseJob(string name, string groupName);
        public void RescheduleJob(string name, string groupName);
        public void DeleteJob(string name, string groupName);
        public void StartJob(string name, string groupName);
        public Task<ScheduledJob> CreateJob(CreateJobRequest createJobRequest);
        public Task<ScheduledJob> EditJob(CreateJobRequest createJobRequest);
    }
}
